package com.zyk.scaffold.gateway.constant;

import com.zyk.scaffold.common.basic.BasicConstants;

public class GatewayConstants extends BasicConstants {
    public static final String GATEWAY_FILTER_ACCESS_TOKEN_NAME = ACCESS_TOKEN_NAME;
    public static final String GATEWAY_FILTER_HEADER_USER_ID = HEADER_USER_ID;
    public static final String GATEWAY_FILTER_HEADER_TENANT_CODE = HEADER_TENANT_CODE;

    /**
     * open api auth key
     */
    public static final String OPEN_API_KEY_AUTH = "open-api-auth";

    /**
     * open api header key
     */
    public enum OpenApiHeader{
        /**
         * appId
         */
        APP_ID("app-id"),
        /**
         * api 签名
         */
        API_SIGN("api-sign"),
        /**
         * api 签名时的时间戳
         */
        API_TIME_STAMP("api-time-stamp"),
        ;

        private String key;
        OpenApiHeader(String key){
            this.key = key;
        }

        public String getKey() {
            return key;
        }
    }
}
